@extends('layouts.master')

@section('title')
    文章管理——木投网商城管理后台
    @stop

@section('app_css')
    <link href="/resource/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="/resource/css/style.css">
    <link rel="stylesheet" href="/resource/css/dataTables.bootstrap.css">
    <link rel="stylesheet" href="/resource/css/fileinput.min.css">
@stop

@section('app_js')
    <script src="/resource/js/jquery-1.11.3.min.js"></script>
    <script src="/resource/js/bootstrap.min.js"></script>
    <script src="/resource/js/jquery.twbsPagination.js"></script>
    <script src="/resource/js/bootstrap-datetimepicker.min.js"></script>
    @stop


@section('content')
    @include('common.nav')
<div class="container-fluid">
    <div class="row" id="navLeft">
        @include('common.article_nav')
        <div class="col-lg-10">
            <div class="navbottom">
              <span>您的位置：</span>文章 > 文章
            </div>
            <div class="contentNav">
              <ul>
                <li>文章</li>
                <li class="btn btn-default active"><a href="index.html">列表</a></li>
                <li class="btn btn-default"><a href="/add_article">新增</a></li>
              </ul>
            </div>
            <hr>
            <div class="contentMember">
              <form class="form-inline">
                <div class="form-group">
                  <label>文章标题</label>
                  <input type="text" class="form-control" placeholder="">
                </div>
                <div class="form-group">
                  <label>作者</label>
                  <input type="text" class="form-control" placeholder="">
                </div>
                <div class="form-group">
                  <label>文章分类</label>
                  <select class="form-control">
                    <option>请选择...</option>
                    <option></option>
                    <option></option>
                    <option></option>
                    <option></option>
                  </select>
                </div>
                <div class="form-group">
                  <label>发表时间</label>
                  <div class="input-group date form_datetime col-md-5" data-date="1979-09-16T05:25:07Z" data-date-format="dd MM yyyy - HH:ii p" data-link-field="dtp_input1">
                      <input class="form-control" size="16" type="text" value="" readonly>
                      <span class="input-group-addon"><span class="glyphicon glyphicon-th"></span></span>
                  </div>
                </div>
                <div class="form-group">
                  <label>~</label>
                  <div class="input-group date form_datetime col-md-5" data-date="1979-09-16T05:25:07Z" data-date-format="dd MM yyyy - HH:ii p" data-link-field="dtp_input1">
                      <input class="form-control" size="16" type="text" value="" readonly>
                      <span class="input-group-addon"><span class="glyphicon glyphicon-th"></span></span>
                  </div>
                </div>
                <button type="submit" class="btn btn-default">搜索</button>
              </form>
              <hr>
              <table class="table table-striped table-bordered bootstrap-datatable datatable table-hover" id="example">
                <thead>
                  <tr>
                    <th></th>
                    <th>文章标题</th>
                    <th>文章分类</th>
                    <th>作者</th>
                    <th>关键词</th>
                    <th>发表日期</th>
                    <th>操作</th>
                  </tr>
                </thead>
                <tbody>
                @foreach($articles as $k => $article)
                  <tr>
                    <td><input type="checkbox" name="demo"></td>
                    <td>{{ $article->article_title }}</td>
                    <td>实时资讯</td>
                    <td>{{ $article->author }}</td>
                    <td>{{ $article->keywords }}</td>
                    <td>{{ $article->created }}</td>
                    <td><a href="#">编辑</a> | <a href="#">删除</a></td>
                  </tr>
                    @endforeach
                </tbody>
              </table>
              <div class="del">
                  <input type="checkbox" id="all">
                  <span>全选</span>
                  <a class="btn btn-default" href="#" role="button">删除</a>
              </div>
            </div>
        </div>
    </div>
</div>
@stop
